package com.jnzc.ocr.serv.shop.api;

import com.jnzc.ocr.common.bean.Tree;
import com.jnzc.ocr.serv.shop.entity.ShopProductAttr;
import com.jnzc.ocr.serv.shop.vo.ShopProductAttrSaveVo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author zhangcm
 * @version 1.0, 2017-09-29
 */
@FeignClient("serv-shop")
@RequestMapping("/ShopProductAttrApi")
public interface ShopProductAttrApi {

    @PostMapping("/listTree")
    List<Tree<ShopProductAttr>> listTree(@RequestParam("shopId") Long shopId);

    @PostMapping("/save")
    void save(@RequestBody ShopProductAttrSaveVo param, @RequestParam("shopId") Long shopId);

    @PostMapping("/delete")
    void delete(@RequestParam("id") Long id, @RequestParam("shopId") Long shopId);
}
